import Layout from './App.vue'
import { App, createApp as _createApp } from 'vue'
import { createRouter } from './router/index'
import { Router } from 'vue-router'
import LayCode from './components/LayCode.vue'
import './assets/css/index.css'

export function createApp(): {
  app: App<Element>
  router: Router
} {
  
  const app = _createApp(Layout);
  const router = createRouter();

  app.use(router).component('LayCode', LayCode)

  return { app, router }
}